import Vue from 'vue'
import App from './App.vue'
import Vuex from 'vuex'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VueRouter from "vue-router"
import router from "./router"
import JsonExcel from 'vue-json-excel'

Vue.use(ElementUI)
Vue.config.productionTip = false

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

Vue.use(VueRouter);
Vue.use(Vuex)
Vue.component('downloadExcel', JsonExcel)


new Vue({
  render: h => h(App),
  router:router
}).$mount('#app')
